FROM ubuntu:14.04
MAINTAINER ms
ENV REFRESHED_AT 2019-06-13
WORKDIR /usr
RUN mkdir jdk
RUN mkdir tomcat
ADD jdk1.8.0_60 /usr/jdk/
ADD apache-tomcat-8.5.42 /usr/tomcat/
COPY ./Student.war /usr/tomcat/webapps/
ENV JAVA_HOME=/usr/jdk
ENV JRE_HOME=$JAVA_HOME/jre
ENV CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib:$CLASSPATH
ENV PATH=/sbin:$JAVA_HOME/bin:$PATH
EXPOSE 8080
ENTRYPOINT ["/usr/tomcat/bin/catalina.sh","run"]
